package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YonbipBdDefdoclistMapper;
import com.ruoyi.system.domain.YonbipBdDefdoclist;
import com.ruoyi.system.service.IYonbipBdDefdoclistService;
import com.ruoyi.common.core.text.Convert;

/**
 * 自定义档案同步列Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-08
 */
@Service
public class YonbipBdDefdoclistServiceImpl implements IYonbipBdDefdoclistService 
{
    @Autowired
    private YonbipBdDefdoclistMapper yonbipBdDefdoclistMapper;

    /**
     * 查询自定义档案同步列
     * 
     * @param id 自定义档案同步列主键
     * @return 自定义档案同步列
     */
    @Override
    public YonbipBdDefdoclist selectYonbipBdDefdoclistById(Long id)
    {
        return yonbipBdDefdoclistMapper.selectYonbipBdDefdoclistById(id);
    }

    /**
     * 查询自定义档案同步列列表
     * 
     * @param yonbipBdDefdoclist 自定义档案同步列
     * @return 自定义档案同步列
     */
    @Override
    public List<YonbipBdDefdoclist> selectYonbipBdDefdoclistList(YonbipBdDefdoclist yonbipBdDefdoclist)
    {
        return yonbipBdDefdoclistMapper.selectYonbipBdDefdoclistList(yonbipBdDefdoclist);
    }

    /**
     * 新增自定义档案同步列
     * 
     * @param yonbipBdDefdoclist 自定义档案同步列
     * @return 结果
     */
    @Override
    public int insertYonbipBdDefdoclist(YonbipBdDefdoclist yonbipBdDefdoclist)
    {
        return yonbipBdDefdoclistMapper.insertYonbipBdDefdoclist(yonbipBdDefdoclist);
    }

    /**
     * 修改自定义档案同步列
     * 
     * @param yonbipBdDefdoclist 自定义档案同步列
     * @return 结果
     */
    @Override
    public int updateYonbipBdDefdoclist(YonbipBdDefdoclist yonbipBdDefdoclist)
    {
        return yonbipBdDefdoclistMapper.updateYonbipBdDefdoclist(yonbipBdDefdoclist);
    }

    /**
     * 批量删除自定义档案同步列
     * 
     * @param ids 需要删除的自定义档案同步列主键
     * @return 结果
     */
    @Override
    public int deleteYonbipBdDefdoclistByIds(String ids)
    {
        return yonbipBdDefdoclistMapper.deleteYonbipBdDefdoclistByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除自定义档案同步列信息
     * 
     * @param id 自定义档案同步列主键
     * @return 结果
     */
    @Override
    public int deleteYonbipBdDefdoclistById(Long id)
    {
        return yonbipBdDefdoclistMapper.deleteYonbipBdDefdoclistById(id);
    }
}
